// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// import ElementUI from 'element-ui'
import { DatePicker} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import router from './router'
import VueResource from 'vue-resource'
import axios from './http'
import store from '@/store/store.js'
// 全局组件
import Cropper from '@/components/global/Cropper'
import headTop from '@/components/global/head'
import footBar from '@/components/global/footer'
import Notfound from '@/components/global/Notfound'
import Message from '@/components/plugin/message/index.js'
// 全局css
import "@/assets/css/iconfont/iconfont.css"
import "@/assets/css/base.css"

Vue.use(VueResource)
// Vue.use(ElementUI)

Vue.component('my-cropper',Cropper)
Vue.component('my-datePecker',DatePicker)
Vue.component('head-top',headTop)
Vue.component('foot-bar',footBar)
Vue.component('message',Message)

Vue.prototype.$zg_message = Message.installMessage

Vue.config.productionTip = false

Vue.prototype.$axios = axios;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {
    App
  }
})

